﻿<UserControl x:Class="Poet.SettingsControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:forms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
    
        <ComboBox Grid.Row="0"  
                  Name="propertyGridComboBox" 
                  SelectedIndex="0" 
                  SelectionChanged="propertyGridComboBoxSelectionChanged">
        <ComboBoxItem>TextEditor</ComboBoxItem>
        <ComboBoxItem>TextArea</ComboBoxItem>
        <ComboBoxItem>Options</ComboBoxItem>
    </ComboBox>

        <WindowsFormsHost Grid.Row="1" 
                          DockPanel.Dock="Right" 
                          Name="propertyGridHost">
        <forms:PropertyGrid x:Name="propertyGrid"/>
    </WindowsFormsHost>
    </Grid>
</UserControl>
